package com.gzx.plugin.tjzy.modular.call.vos.controller;

import com.gzx.plugin.tjzy.modular.call.vos.service.GzxVosAccessGatewayService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.xiaonuo.common.pojo.CommonResult;

/**
 * @author zjt
 * @description
 * @date 2025/5/16 17:31
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/tjzy/vos")
public class GzxVosAccessGatewayController {

    private final GzxVosAccessGatewayService vosAccessGatewayService;

    /**
     * 查询线路的并发数
     *
     * @return
     */
    @GetMapping("/getCurrentCallSize")
    public CommonResult<String> getCurrentCallSize() {
        return CommonResult.data(vosAccessGatewayService.getCurrentCallSize());
    }
}
